package com.cykj.shop.service.impl;

import com.cykj.common.core.web.domain.AjaxResult;
import com.cykj.shop.mapper.ShopCategoryMapper;
import com.cykj.shop.service.ShopCategoryService;
import com.cykj.system.api.domain.ShopCategory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 叶佳伟
 * @date 2025/8/26
 * @description 功能描述: 店铺类别实现类
 */
@Service
public class ShopCategoryServiceImpl implements ShopCategoryService {
    @Autowired
    private ShopCategoryMapper shopCategoryMapper;
    @Override
    public AjaxResult getAllCategory() {
        List<ShopCategory> shopCategoryList = shopCategoryMapper.getAllCategory();
        return AjaxResult.success(shopCategoryList);
    }
}
